package com.yanqu.road.entity.systemgroup.newmonopolymarket;

import com.yanqu.road.entity.monopolymarket.group.IMonopolyMarketGroup;
import com.yanqu.road.entity.systemgroup.ResourceServerGroup;

import java.util.List;

public class NewMonopolyMarketServerGroup implements IMonopolyMarketGroup {

    private ResourceServerGroup serverGroup;

    private int weekId;

    public NewMonopolyMarketServerGroup(int weekId, ResourceServerGroup serverGroup) {
        this.weekId = weekId;
        this.serverGroup = serverGroup;
    }

    @Override
    public long getMonopolyMarketGroupId() {
        return serverGroup.getGroupId();
    }

    @Override
    public List<Long> getMonopolyMarketServerList() {
        return serverGroup.getServerList();
    }

    @Override
    public int getMonopolyMarketChangeTime() {
        return weekId * 10000;
    }

    @Override
    public int getMonopolyMarketFortressState() {
        return 0;
    }
}
